package com.kayt.cyberBar.cuser.business.service;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cuser.business.entity.po.BPosition;
import com.kayt.cyberBar.cuser.business.entity.req.vo.PositionReqVO;

@Path("positionService")
public interface IPositionService {

	@POST
	@Path("addPosition.do")
	@Produces({ "application/json" + ";charset=UTF-8" })
	@Consumes({ "application/json" })
	ServerResponse<BPosition> addPosition(PositionReqVO positionReqVO);

	@POST
	@Path("updatePosition.do")
	@Produces({ "application/json" + ";charset=UTF-8" })
	@Consumes({ "application/json" })
	ServerResponse<BPosition> updatePosition(PositionReqVO positionReqVO);

	@GET
	@Path("getPositionList.do")
	@Produces({ "application/json" + ";charset=UTF-8" })
	@Consumes({ "application/json" })
	ServerResponse<PageData<BPosition>> getPositionList(@QueryParam("storeCode") String storeCode);

	@GET
	@Path("sortSeq.do")
	@Produces({ "application/json" + ";charset=UTF-8" })
	@Consumes({ "application/json" })
	ServerResponse<String> sortSeq(@QueryParam("ids") String ids);
}
